package com.travelgroup.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum LocationType implements IEnum<Integer> {
    PLACE(0, "地点"),
    TRAFFIC(1, "交通"),
    HOTEL(2, "酒店"),
    FOOD(3, "餐饮"),
    SHOPPING(4, "购物");
    @EnumValue
    private final Integer value;
    @JsonValue
    private final String type;

    LocationType(Integer value, String type) {
        this.value = value;
        this.type = type;
    }
}
